<?php
/**
 *  Yar server
 */
class YarServerController extends BasicController {

    private function init(){
        // We don't need view in server mode
        Yaf_Dispatcher::getInstance()->disableView();
    }

    public function apiAction() {
        Yaf_Loader::import(LIB_PATH.'/yar/Api.php');

        $service = new Yar_Server(new Yar_Api());
        $service->handle();
    }

}
